package com.example.foobar.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.foobar.business.service.DaOfficialAccountService;
import com.example.foobar.business.service.DaUserOfficialAccountService;
import com.example.foobar.business.service.ImsAccountWechatsService;
import com.example.foobar.dao.service.DaOfficialAccountDaoService;
import com.example.foobar.dao.service.DaUserOfficialAccountDaoService;
import com.example.foobar.entity.DaOfficialAccount;
import com.example.foobar.entity.DaUserOfficialAccount;
import com.example.foobar.entity.ImsAccountWechats;
import com.example.foobar.param.DaOfficialAccountPageParam;
import com.example.foobar.param.DaUserOfficialAccountPageParam;
import io.geekidea.springbootplus.framework.core.pagination.Paging;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 本地公众号信息 服务实现类
 *
 * @author 郑英奔
 * @since 2021-05-31
 */
@Slf4j
@Service
public class DaUserOfficialAccountServiceImpl implements DaUserOfficialAccountService {

    @Autowired
    DaUserOfficialAccountDaoService daUserOfficialAccountDaoService;

    @Override
    public boolean saveDaUserOfficialAccount(DaUserOfficialAccount daUserOfficialAccount) {
        return daUserOfficialAccountDaoService.saveDaUserOfficialAccount(daUserOfficialAccount);
    }

    @Override
    public boolean updateDaUserOfficialAccount(DaUserOfficialAccount daUserOfficialAccount) {
        return daUserOfficialAccountDaoService.updateDaUserOfficialAccount(daUserOfficialAccount);
    }

    @Override
    public boolean deleteDaUserOfficialAccount(Long id) {
        return daUserOfficialAccountDaoService.deleteDaUserOfficialAccount(id);
    }

    @Override
    public DaUserOfficialAccount getById(Long id) {
        return daUserOfficialAccountDaoService.getById(id);
    }
}
